package com.hospital.doctor.pojo;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

//科室
@AllArgsConstructor
@NoArgsConstructor
public class Department {

    private int kId;
    private String kName;



    private List<Patient> patient = new ArrayList<>();

    public List<Patient> getPatient() {
        return patient;
    }

    public void setPatient(List<Patient> patient) {
        this.patient = patient;
    }

    public int getkId() {
        return kId;
    }

    public void setkId(int kId) {
        this.kId = kId;
    }

    public String getkName() {
        return kName;
    }

    public void setkName(String kName) {
        this.kName = kName;
    }

    public Department(int kId, String kName) {
        this.kId = kId;
        this.kName = kName;
    }



    @Override
    public String toString() {
        return "Department{" +
                "kId=" + kId +
                ", kName='" + kName + '\'' +
                '}';
    }
}
